// pages/indent/indentDetails.js
var date = require('../../utils/util.js');
Page({
  data: {
    payList:"",
    Address:"",
    pay:0,
  },
  onLoad: function (options) {
    var that = this
    var payList = wx.getStorageSync("payList");
    console.log(payList)
    var timeStart = date.formatTime(new Date(payList.order.timeStart));
    var timePay = date.formatTime(new Date(payList.order.timePay));
    var timeExpire = date.formatTime(new Date(payList.order.timeExpire));
    that.setData({
      Address: wx.getStorageSync("Address"),
      payList: payList,
      timeStart: timeStart,
      timePay: timePay,
      timeExpire: timeExpire,
      state: payList.order.state
    })
    console.log(payList.order.state)
  },



})